package com.ruoyi.procurementmanagement.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品分类对象 es_category
 * 
 * @author ruoyi
 * @date 2025-03-14
 */
public class EsCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long categoryId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;

    /** 分类父id */
    @Excel(name = "分类父id")
    private Long parentId;

    /** 分类父子路径 */
    @Excel(name = "分类父子路径")
    private String categoryPath;

    /** 该分类下商品数量 */
    @Excel(name = "该分类下商品数量")
    private Long goodsCount;

    /** 分类排序 */
    @Excel(name = "分类排序")
    private Long categoryOrder;

    /** 分类图标 */
    @Excel(name = "分类图标")
    private String image;

    /** 是否显示 YES：是，NO：否 */
    @Excel(name = "是否显示 YES：是，NO：否")
    private String isShow;

    /** 分类广告图片 */
    @Excel(name = "分类广告图片")
    private String advImage;

    /** 分类广告图片链接地址 */
    @Excel(name = "分类广告图片链接地址")
    private String advImageLink;

    /** 自定义编码 */
    @Excel(name = "自定义编码")
    private String customSn;

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setCategoryPath(String categoryPath) 
    {
        this.categoryPath = categoryPath;
    }

    public String getCategoryPath() 
    {
        return categoryPath;
    }
    public void setGoodsCount(Long goodsCount) 
    {
        this.goodsCount = goodsCount;
    }

    public Long getGoodsCount() 
    {
        return goodsCount;
    }
    public void setCategoryOrder(Long categoryOrder) 
    {
        this.categoryOrder = categoryOrder;
    }

    public Long getCategoryOrder() 
    {
        return categoryOrder;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setIsShow(String isShow) 
    {
        this.isShow = isShow;
    }

    public String getIsShow() 
    {
        return isShow;
    }
    public void setAdvImage(String advImage) 
    {
        this.advImage = advImage;
    }

    public String getAdvImage() 
    {
        return advImage;
    }
    public void setAdvImageLink(String advImageLink) 
    {
        this.advImageLink = advImageLink;
    }

    public String getAdvImageLink() 
    {
        return advImageLink;
    }
    public void setCustomSn(String customSn) 
    {
        this.customSn = customSn;
    }

    public String getCustomSn() 
    {
        return customSn;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("categoryPath", getCategoryPath())
            .append("goodsCount", getGoodsCount())
            .append("categoryOrder", getCategoryOrder())
            .append("image", getImage())
            .append("isShow", getIsShow())
            .append("advImage", getAdvImage())
            .append("advImageLink", getAdvImageLink())
            .append("customSn", getCustomSn())
            .toString();
    }
}
